/* 
 * File:   main.cpp
 * Author: Serge
 *
 * Created on 4 avril 2011, 21:15
 */

#include <cstdlib>
#include "coreSound.h"

using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {
    char test;
    string* deviceName;
    int i, nbrDevices;
    const PaDeviceInfo * di;

    CoreSound objCore;
    objCore.Start();
    deviceName = objCore.ListDevicesNames();
    nbrDevices = objCore.DevicesCount();

    for(i = 0; i < nbrDevices;  i++){
        std::cout << deviceName[i];
    }
   

    //Test de GetDeviceInfo()
    di = objCore.GetDeviceInfo();

    cout << di->defaultHighInputLatency;


    //Sample rate change test
    objCore.SetSampleRate(44100);

    //Resolution change Test
    objCore.SetResolution(24);


    std::cin >> test;

    return 0;
}

